package com.webside.front.common.mapper;

import java.util.List;
import java.util.Map;

import com.webside.front.common.model.BVideo;

public interface BVideoMapper {
	
	/**
	 * 提供一个Map集合条件查询的接口
	 * 可识别参数：
	 * @param condition:
	 * BVideo:
	 * 		id, series_id, title, 
	 * 		description, summary, set_num, 
	 * 		detail_url
	 * Sort:
	 * 		orderColumn orderType
	 * @return
	 */
	List<BVideo> selectBVideoByCondition(Map<String, Object> condition);
	
	/**
	 * 提供一个Map集合条件查询count(1)聚合函数接口
	 * 可识别参数：
	 * @param condition:
	 * BVideo:
	 * 		id, series_id, title, 
	 * 		description, summary, set_num, 
	 * 		detail_url
	 * @return
	 */
	int selectVideosCountByCondition(Map<String,Object> condition);
	
	
	
	
	
    int deleteByPrimaryKey(Integer id);

    int insert(BVideo record);

    int insertSelective(BVideo record);
    //查询视频信息
    BVideo selectByPrimaryKey(Integer id);

   
    int updateByPrimaryKeySelective(BVideo record);

    int updateByPrimaryKey(BVideo record);
   
    //详细页面剧集选择
    List<BVideo> selectVideo(BVideo bVideoEntity);
    List<BVideo> selectVideoBySId(Integer seriesId);
    //点赞
     void updateVideoLikeCount(BVideo video);
     //播放次数累加
     void  updateVideoPlayCount(BVideo video);
    
    
}